package org.vectrics.provider;

import org.vectrics.SystemException;

/**
 * @author mmoore
 */
public abstract class ServiceLocator {

    public static Object findServiceBean(String code) {
        Object service = BeanLocator.findBean(code);
        if (service == null)
        	throw new SystemException("Could not find bean: " + code);
        return(service);
    }
    
}
